< previous page page_77 next page >

Page 77
0077-01.jpg
Figure 2.15
Program Flood demonstrates the FloodFill API function.
e10a6a0a59f035e870d90cca05b85fce.gif
ByVal x As Long, ByVal y As Long, _
ByVal crColor As Long, ByVal wFillType As Long) As Long
Figure 2.16 shows two shapes that you could fill using FloodFill. The shape on the left is filled with more than one color (light gray and white), but its border is a single color (black). You could fill this shape using FloodFill or using ExtFloodFill with wFillType set to FLOODFILLBORDER and crColor set to black.
The shape on the right is filled with a single color (light gray) and is surrounded by a border with more than one color (dark gray and white). You could fill this shape using ExtFloodFill specifying FLOODFILLSURFACE for wFillType and light gray for crColor.
The FloodFill and ExtFloodFill functions fill areas using the color and pattern specified by the drawing object's FillStyle and FillColor properties.
0077-02.gif
Figure 2.16
Objects to be filled through use of FloodFill.

 
< previous page page_77 next page >